﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartPlant.Model.DbContext
{
    /// <summary>
    ///
    ///</summary>
    [SugarTable("LINE")]
    public class Line:MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_ID", IsPrimaryKey = true)]
        public decimal LineId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PROJ_ID")]
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SITE_ID")]
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_NUM")]
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "UNIT_ID")]
        public decimal UnitId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "USER_NAME")]
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_STATUS")]
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_DATE")]
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_NUM")]
        public string LineNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_SIZE")]
        public string LineSize
        {
            get
            {
                return _LineSize;
            }
            set
            {
                _LineSize = value;
                OnPropertyChanged(nameof(LineSize));
            }

        }
        private string _LineSize;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "WALL_THICK")]
        public decimal? WallThick { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "RTG")]
        public string Rtg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PLANT_ID")]
        public decimal PlantId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "AREA_ID")]
        public decimal AreaId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_TYPE_ID")]
        public decimal LineTypeId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_SCHED")]
        public string LineSched
        {
            get
            {
                return _LineSched;
            }
            set
            {
                _LineSched = value;
                OnPropertyChanged(nameof(LineSched));
            }

        }
        private string _LineSched;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_INTERNAL_DIA")]
        public decimal? LineInternalDia { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "TEMPERATURE_RTG")]
        public string TemperatureRtg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PRESS_RTG")]
        public string PressRtg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_CORROS_ALLOW")]
        public decimal? PdCorrosAllow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_INSUL")]
        public string PdInsul { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PUMP_DROP_UID")]
        public string PdPumpDropUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_VELOCITY_MIN")]
        public decimal? PdVelocityMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_VELOCITY_MAX")]
        public decimal? PdVelocityMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_VELOCITY_NOR")]
        public decimal? PdVelocityNor { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_VELOCITY_UID")]
        public string PdVelocityUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LINE_FROM")]
        public string PdLineFrom { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_LINE_TO")]
        public string PdLineTo { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PIPING_CLASS")]
        public string PdPipingClass { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_POUR_PNT_UP")]
        public decimal? PdPourPntUp { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_POUR_PNT_LOW")]
        public decimal? PdPourPntLow { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_POUR_PNT_UID")]
        public string PdPourPntUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_SYS_FRIC_LOSS")]
        public decimal? PdSysFricLoss { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_SYS_FRIC_LOSS_UID")]
        public string PdSysFricLossUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_CORROS_ALLOW_UID")]
        public string PdCorrosAllowUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PUMP_DROP")]
        public decimal? PdPumpDrop { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PIPE_STD_ID")]
        public decimal? PipeStdId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_UOM")]
        public string LineUom
        {
            get
            {
                return _LineUom;
            }
            set
            {
                _LineUom = value;
                OnPropertyChanged(nameof(LineUom));
            }

        }
        private string _LineUom;
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PIPE_MATERIAL")]
        public string PipeMaterial { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ANSI_DIN")]
        public string AnsiDin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PIPE_SIZE")]
        public decimal? PipeSize { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "WALL_THICK_UOM")]
        public string WallThickUom { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_INTERNAL_DIA_UOM")]
        public string LineInternalDiaUom { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_INSULATION_ID")]
        public decimal? PdInsulationId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PIPE_ORIF_MAT_ID")]
        public decimal? PipeOrifMatId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_ISIZE_PIPESCHID_INDX")]
        public decimal? LineIsizePipeschidIndx { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "LINE_ISIZE_SCHED_INDX")]
        public decimal? LineIsizeSchedIndx { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "REV_ID")]
        public decimal? RevId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_PROJ_ID")]
        public decimal EngProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_REF_ID")]
        public decimal EngRefId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "STREAM_NUM")]
        public string StreamNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DWG_ID")]
        public decimal DwgId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PIPE_CLASS_ID")]
        public decimal? PipeClassId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_TOTALPLANT")]
        public string KksTotalplant { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_FUNCTION_KEY_PREFIX")]
        public string KksFunctionKeyPrefix { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_FUNCTION_KEY")]
        public string KksFunctionKey { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_FUNCTION_KEY_SEQUENCE")]
        public string KksFunctionKeySequence { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_EQUIPMENT_UNIT_CODE")]
        public string KksEquipmentUnitCode { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_EQUIPMENT_UNIT_SEQUENCE")]
        public string KksEquipmentUnitSequence { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_EQUIPMENT_UNIT_ADD_CODE")]
        public string KksEquipmentUnitAddCode { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_COMPONENT_KEY")]
        public string KksComponentKey { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "KKS_COMPONENT_KEY_SEQUENCE")]
        public string KksComponentKeySequence { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "MERGE_RELEASE_FLG")]
        public string MergeReleaseFlg { get; set; }
    }
}
